import React from 'react';
import PropTypes from 'prop-types';
import {
    requireNativeComponent,
} from 'react-native';

// requireNativeComponent 自动把这个组件提供给 "RCTScrollView"
const RCTScrollView = requireNativeComponent('TestScrollView', TestScrollView);

class TestScrollView extends React.Component {
    render() {
        return <RCTScrollView {...this.props} />;
    }
}

TestScrollView.propTypes = {
    /**
     * 属性类型，其实不写也可以，js会自动转换类型
     */
    autoScrollTimeInterval: PropTypes.number,
    imageURLStringsGroup: PropTypes.array,
    autoScroll: PropTypes.bool,

    onClickBanner: PropTypes.func
};

module.exports = TestScrollView;